package com.sensePlusVR.utils;

import android.content.Context;
import android.os.Environment;

import java.io.File;


/**
 * 反畸变操作
 * @author Charles
 *
 */
public class UnDistortionUtil {
	
	private static final String dstDir = "Cardboard";
	
	private static final String dstDeviceName = "current_device_params";
	

	public static void checkDistortion(Context context){
		
		String dstPath = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator+dstDir+File.separator+dstDeviceName;
		
		if(FileUtils.isFileExist(dstPath)){
			
			FileUtils.deleteFile(dstPath);
		}
			
		FileUtils.copyAssetToSDCard(context.getAssets(), dstDeviceName, dstPath);
	}
	
	
	
}
